﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CNotebook;

namespace NotebookS2
{
    public partial class CRYSTAL_PLOTTING_PARAM : DevExpress.XtraBars.Ribbon.RibbonForm
    {
        public CRYSTAL_PLOTTING_PARAM()
        {
            InitializeComponent();
        }

        public string ConnectionString { get; set; }

       private void CRYSTAL_STOCKMOVEMENT_PARAM_Load(object sender, EventArgs e)
        {
            dtFrom.EditValue = System.DateTime.Now;
            dtTo.EditValue = System.DateTime.Now;
            
        }


        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        private void btnPrintPreview_Click(object sender, EventArgs e)
        {

            CRYSTAL_SKU_PLOTTING oForm = new CRYSTAL_SKU_PLOTTING();

            oForm.ConnectionString = this.ConnectionString;
            
            oForm.FromDate = (DateTime)dtFrom.EditValue;
            oForm.ToDate = (DateTime)dtTo.EditValue;
            oForm.WindowState = FormWindowState.Maximized;
            oForm.ShowDialog();
        }
    }
}
